# -*- coding: utf-8 -*-
import uuid


def gen_uuid4():
    return uuid.uuid4().hex


def get_http_page(url):
    import urllib3
    urllib3.disable_warnings()  # 禁用各种警告
    # url = "https://www.booktxt.net/"
    http = urllib3.PoolManager()
    r = http.request('get', url)
    return r.data